package cn.zn.modules.budget.cur.service;

import cn.zn.framework.common.utils.PageUtils;
import cn.zn.modules.budget.cur.entity.TBudgetInfoDetailEntity;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

/**
 * @author zn
 * @email zhunahao@qq.com
 * @date 2019-12-10 14:27:52
 */
public interface TBudgetInfoDetailService extends IService<TBudgetInfoDetailEntity> {

    PageUtils queryPage(Map<String, Object> params);

    TBudgetInfoDetailEntity findDetail(String id);

    void importDetail(MultipartFile file);

    List<String> queryNoDept();

    List<String> queryNoProject();

    void saveDept(String deptOld, String dept);

    void saveProjectAll();

    void saveAll(String remark);

    /**
     * 保存审核结果
     *
     * @param ids
     * @param result
     */
    void saveAudit(List<String> ids, Boolean result);

    /**
     * 激活
     *
     * @param ids
     */
    void saveActive(List<String> ids);

    /**
     * 删除预算
     *
     * @param ids
     */
    void deleteEntity(List<String> ids);
}


